projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbbf2ee
)
Correct mismatched ctor/xfree in tpo.
author
robertlipe
<robertlipe@gmail.com>
Sun, 10 Feb 2013 03:03:54 +0000
(
03:03
+0000)
committer
robertlipe
<robertlipe@gmail.com>
Sun, 10 Feb 2013 03:03:54 +0000
(
03:03
+0000)
gpsbabel/tpo.cc
patch
|
blob
|
history
diff --git
a/gpsbabel/tpo.cc
b/gpsbabel/tpo.cc
index adb30e5462742d3b17441bba3247af11fddc1fcc..36e87d8dde7c8cb5463a840c28ac0d326cfe906f 100644
(file)
--- a/
gpsbabel/tpo.cc
+++ b/
gpsbabel/tpo.cc
@@
-640,7
+640,6
@@
void tpo_process_tracks(void)
for (ii = 0; ii < track_count; ii++) {
unsigned int line_type;
unsigned int track_style;
- unsigned int track_length;
unsigned int name_length;
char* track_name = NULL;
unsigned int track_byte_count;
@@
-1361,7
+1360,7
@@
void tpo_process_routes(void)
if (tpo_wp_index[ii]->description) {
xfree(tpo_wp_index[ii]->description);
}
-
x
free(tpo_wp_index[ii]);
+
waypt_
free(tpo_wp_index[ii]);
}
// Free the index array itself